package com.codepilot.server.model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class StatsDTO {
    
    private Integer userId;
    private Integer total;
    private Integer easy;
    private Integer medium;
    private Integer hard;
    
    public int getTotal() {
        if (total == null) {
            total = easy + medium + hard;
        }
        return total;
    }

}
